<bean id="${SftpComponent.id}"  class="com.kingyea.esb.components.protocol.ftp.SftpComponent">
	<property name="id"	value="${SftpComponent.id}"></property>

	<#if (SftpComponent.x)??>
	<property name="x"		value="${converter.string(SftpComponent.x)}" />
	<#else>
	<property name="x"		value="209" />
	</#if>

	<#if (SftpComponent.y)??>
	<property name="y"		value="${converter.string(SftpComponent.y)}" />
	<#else>
	<property name="y"		value="165" />
	</#if>
	
	<#if (SftpComponent.ftpName)??>
	<property name="ftpName"		value="${SftpComponent.ftpName}" />
	</#if>

	<property name="host"			value="${SftpComponent.host}" />

	<#if (SftpComponent.port)??>
	<property name="port"		value="${converter.string(SftpComponent.port)}" />
	</#if>

	<#if (SftpComponent.username)??>
	<property name="username"		value="${SftpComponent.username}" />
	</#if>

	<#if (SftpComponent.password)??>
	<property name="password"		value="${SftpComponent.password}" />
	</#if>

	<property name="directoryName"		value="${SftpComponent.directoryName}" />

	<#if (SftpComponent.recursive)??>
	<property name="recursive"		value="${converter.string(SftpComponent.recursive)}" />
	</#if>

	<#if (SftpComponent.initialDelay)??>
	<property name="initialDelay"		value="${converter.string(SftpComponent.initialDelay)}" />
	</#if>

	<#if (SftpComponent.delay)??>
	<property name="delay"		value="${converter.string(SftpComponent.delay)}" />
	</#if>

	<#if (SftpComponent.binary)??>
	<property name="binary"		value="${converter.string(SftpComponent.binary)}" />
	</#if>

	<#if (SftpComponent.download)??>
	<property name="download"		value="${converter.string(SftpComponent.download)}" />
	</#if>

	<#if (SftpComponent.streamDownload)??>
	<property name="streamDownload"		value="${converter.string(SftpComponent.streamDownload)}" />
	</#if>

	<#if (SftpComponent.localWorkDirectory)??>
	<property name="localWorkDirectory"		value="${SftpComponent.localWorkDirectory}" />
	</#if>
	<#if (SftpComponent.idempotent)??>
	<property name="idempotent"		value="${converter.string(SftpComponent.idempotent)}" />
	</#if>


	<property name="idempotentRepository">
		<bean class="org.apache.camel.processor.idempotent.FileIdempotentRepository">
			<property name="fileStore"			value="/XCHGDATA/BJ/idempotent/${service.id+SftpComponent.id}.dat"></property>
			<property name="maxFileStoreSize"	value="1048576"></property>
		</bean>
	</property>


	<#if (SftpComponent.fileFilter)??>
	<property name="fileFilter"		ref="${SftpComponent.fileFilter}" />
	</#if>

	<#if (SftpComponent.knownHostsUri)??>
	<property name="knownHostsUri"		ref="${SftpComponent.knownHostsUri}" />
	</#if>

	<#if (SftpComponent.privateKeyUri)??>
	<property name="privateKeyUri"		ref="${SftpComponent.privateKeyUri}" />
	</#if>

	<#if (SftpComponent.privateKey)??>
	<property name="privateKey"		ref="${SftpComponent.privateKey}" />
	</#if>

	<#if (SftpComponent.privateKeyPassphrase)??>
	<property name="privateKeyPassphrase"		ref="${SftpComponent.privateKeyPassphrase}" />
	</#if>

	<#if (SftpComponent.ciphers)??>
	<property name="ciphers"		ref="${SftpComponent.ciphers}" />
	</#if>

	<#if (SftpComponent.serverAliveInterval)??>
	<property name="serverAliveInterval"		ref="${converter.string(SftpComponent.serverAliveInterval)}" />
	</#if>

	<#if (SftpComponent.serverAliveCountMax)??>
	<property name="serverAliveCountMax"		ref="${converter.string(SftpComponent.serverAliveCountMax)}" />
	</#if>

	<#if (SftpComponent.strickHostKeyChecking)??>
	<property name="strickHostKeyChecking"		ref="${converter.string(SftpComponent.strickHostKeyChecking)}" />
	</#if>

	<property name="outputs">
		<list>
			<#list SftpComponent.outputs as outputRefId>
			<bean class="com.kingyea.camel.runtime.transition.Transition">
				<property name="targetRef" ref="${outputRefId}"></property>
			</bean>
			</#list>
		</list>
	</property>
</bean>